<template>
  <h1>{{ store.state.message }}</h1>
  <button @click="store.setMessage('abc')">改变</button>
</template>

<script>
export default {
  data() {
    return {
      count: 0,
    };
  },
  // 3.注入store
  inject: ["store"],
};
</script>
